package com.example.springboot.controller;

import com.example.springboot.dao.registerBean.IUserDao;
import com.example.springboot.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/4/2 13:58
 */
@RestController
public class IUserDaoController {
    @Autowired
    private IUserDao iUserDao;

    @GetMapping("/test/test")
    public List<User> test() {
        System.out.println(iUserDao.getClass());
        List<User> users = iUserDao.queryUserInfo();
        return users;
    }
}
